package com.hustzp.com.xichuangzhu.poetry.model;

import android.os.Parcelable;

import com.avos.avoscloud.AVClassName;
import com.avos.avoscloud.AVObject;

import java.util.Date;

/**
 * Copyright (C) 2015 The huimai mobile client Project
 * All right reserved.
 *
 * @author: wuzhimin@huimai365.com
 * @date: 2016/5/30 16:26
 * @Description:评论列表
 */
@AVClassName("Post")
public class LikePost extends AVObject {
    public static final Parcelable.Creator CREATOR = AVObject.AVObjectCreator.instance;
    public static final String WORKID = "workId";
    public static final String LIKESCOUNT = "likesCount";
    public static final String COMMENTSCOUNT = "commentsCount";
    public static final String TEXT = "text";
    public static final String CREATEDAT = "createdAt";
    private Works works;

    private boolean liked; // 是否已赞
    private AVObject likeAVObj; // 点赞记录

    public LikePost() {

    }


    public int getWORKID() {
        return getInt(WORKID);
    }

    public int getLIKESCOUNT() {
        return getInt(LIKESCOUNT);
    }

    public int getCOMMENTSCOUNT() {
        return getInt(COMMENTSCOUNT);
    }

    public String getTEXT() {
        return getString(TEXT);
    }

    public Date getCREATEDAT() {
        return getDate(CREATEDAT);
    }

    public Works getWorks() {
        return works;
    }

    public void setWorks(Works works) {
        this.works = works;
    }

    public boolean isLiked() {
        return liked;
    }

    public void setLiked(boolean liked) {
        this.liked = liked;
    }

    public AVObject getLikeAVObj() {
        return likeAVObj;
    }

    public void setLikeAVObj(AVObject likeAVObj) {
        this.likeAVObj = likeAVObj;
    }
}
